﻿
<phone:PhoneApplicationPage 
    x:Class="Wwtfly.CHY.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="Black"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--Foreground="{StaticResource PhoneForegroundBrush}"-->
    
    
    <phone:PhoneApplicationPage.Resources>
        <SolidColorBrush x:Key="PinkBrushKey" Color="#FFC0CB" />
        <SolidColorBrush x:Key="BlackBrushKey" Color="Black" />
    </phone:PhoneApplicationPage.Resources>
    
    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" FontSize="32" Text="彩虹云" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        
        <Grid x:Name="ContentPanel" 
              
              Grid.Row="1" Margin="12,0,12,0" Background="{x:Null}">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="374*" />
                <ColumnDefinition Width="82*" />
            </Grid.ColumnDefinitions>
            <TextBox Height="72"   HorizontalAlignment="Left" Margin="71,-3,0,0" Name="txtUserName" Text="" VerticalAlignment="Top" Width="332" Grid.ColumnSpan="2" />
            <PasswordBox Height="72" HorizontalAlignment="Left" Margin="71,60,0,0" Name="txtPwd" VerticalAlignment="Top" Width="332" Grid.ColumnSpan="2" />
            <TextBlock Height="30"  FontWeight="Bold" HorizontalAlignment="Left" Margin="26,23,0,0" Name="textBlock1" Text="帐号" VerticalAlignment="Top" />
            <TextBlock Height="30"  FontWeight="Bold" HorizontalAlignment="Left" Margin="26,79,0,0" Name="textBlock2" Text="密码" VerticalAlignment="Top" />
            <Button Content="登陆" Height="72" HorizontalAlignment="Left" Margin="26,125,0,0" Name="btnLogin" VerticalAlignment="Top" Width="377" Click="btnLogin_Click" Grid.ColumnSpan="2" Foreground="{StaticResource BlackBrushKey}" FontWeight="Bold"  />
            <Button Content="登陆签到" Height="72" HorizontalAlignment="Left" Margin="26,194,0,0" Name="btnLoginCheckIn" VerticalAlignment="Top" Width="187" Click="btnLoginCheckIn_Click" Foreground="{StaticResource BlackBrushKey}" FontWeight="Bold" />
            <Button Content="登陆签退" Height="72" HorizontalAlignment="Left" Margin="219,194,0,0" Name="btnLoginCheckOut" VerticalAlignment="Top" Width="184" Click="btnLoginCheckOut_Click" Grid.ColumnSpan="2" Foreground="{StaticResource BlackBrushKey}"  FontWeight="Bold" />
            <CheckBox Content="记住密码" Height="72" HorizontalAlignment="Left" Margin="57,263,0,0" Name="cbkRememberPwd" VerticalAlignment="Top" Width="165" IsChecked="True">
                <CheckBox.RenderTransform>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7" />
                </CheckBox.RenderTransform>
                
            </CheckBox>
            <CheckBox Content="省流量模式" Height="72" HorizontalAlignment="Left" Margin="245,262,0,0" Name="cbkSaveFlow" VerticalAlignment="Top" Grid.ColumnSpan="2"  IsChecked="True">
                <CheckBox.RenderTransform>
                    <ScaleTransform ScaleX="0.7" ScaleY="0.7" />
                </CheckBox.RenderTransform>
            </CheckBox>
            <Image Height="185" HorizontalAlignment="Left" Margin="71,339,0,0" Name="imgLoginIcon" Stretch="None" VerticalAlignment="Top" Width="300" Source="/Wwtfly.CHY;component/img/logon/login_icon.png" />
        </Grid>
        <Grid.Background>
            <ImageBrush ImageSource="/Wwtfly.CHY;component/img/logon/qygzt_log_bg.png" />
        </Grid.Background>
    </Grid>
 
    <!--演示 ApplicationBar 用法的示例代码-->
   
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="False" IsMenuEnabled="True">
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="关于"/>                
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>